package com.cdyGateway.controller;

import entity.Result;
import entity.StatusCode;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author ：cdy
 * @date ：Created in 2020/11/16 14:13
 * @description：www.cdyong.cn
 */
@RestController
public class DefaultHystrixController {

    @RequestMapping("/defaultfallback")
    public Result defaultfallback(){

        return new Result(false, StatusCode.REMOTEERROR,"请求超时，服务降级");
    }
}
